#include <iostream>
#include <vector>

using namespace std;

int brokenCalc(int startValue, int target) {
    int ret = 0;
    while (target > startValue)
    {
        if (target % 2 == 0)
        {
            target /= 2;
        }
        else
        {
            ++target;
        }
        ++ret;
    }

    return ret + startValue - target;
}

int main()
{

	return 0;
}